<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:23:"app/index/view/reg.html";i:1615171821;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="author" content="@梦雨(QQ50361804)" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>登录 - <?php echo set('title'); ?></title>
	<meta name="keywords" content="<?php echo set('keywords'); ?>">
    <meta name="description" content="<?php echo set('description'); ?>">
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="/app/index/view/public/css/bootstrap.min.css">
    <link rel="stylesheet" href="/public/admin/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/public/admin/css/font.css">
	<link href="/public/css/default.css" rel="stylesheet">
	<script src="/public/js/jquery-3.4.1.min.js"></script>
    <script src="/public/admin/lib/layui/layui.js"></script>
    <link rel="stylesheet" type="text/css" href="/app/index/view/public/css/uid.css?v=<?php echo set('banben'); ?>" />
    <link rel="stylesheet" href="/app/index/view/public/css/login.css?v1.1">
</head>
<body class="indexx">
    <main class="main pb-20">
        <div class="header-image">
            <div class="js-parallax"></div>
        </div>
        <div class="container gutter-top">
            <div class="row sticky-parent">
                <!-- 内容开始 -->
                <div class="col-12 col-md-12 col-lg-5" style="margin: 0 auto;">
                    <div class="box box-content" style="min-height: 625px;">
                        <div class="layui-clear">
                            <div id="wrapper" class="login-page">
                                <div id="login_form" class="forms">
                                      <form class="login-form layui-form form" url="<?php echo url('index/api/reg'); ?>" t_url="javascript:parent.location.reload();">
                                            <p class="titles">注册</p>
                                            <div class="form-group">
                                                <label>手机号码/邮箱</label>
                                                <div class="input-with-icon">
                                                    <input type="phone" id="name" class="form-control" name="name" required lay-verify="required" placeholder="手机号码or邮箱">
                                                </div>
                                            </div>
                                            <?php if(set_s('reg')==1): ?>
                                            <div class="form-group">
                                                <label>验证码</label>
                                                <div class="input-with-icon">
                                                    <input type="text" class="form-control" name="yanzhengma" required lay-verify="required" placeholder="验证码"> 
                                                    <button type="button" class="layui-btn sendRegCode" t_url="<?php echo url('index/api/yanzhengma'); ?>" id="phoneormail">发送验证码</button>
                                                </div>
                                            </div>
                                            <?php endif; ?>
                                            <div class="form-group">
                                                <label>密码</label>
                                                <div class="input-with-icon">
                                                    <input type="password" name="password" required lay-verify="required" class="form-control" placeholder="创建密码"> 
                                                </div>
                                            </div>
                                        <div class="form-group">
                                            <button type="submit" lay-submit lay-filter="cms" class="btn btn-md full-width pop-login bg-2">注册</button>
                                        </div>
                                        <p class="message">已有账户? <a href="<?php echo url('index/user/login'); ?>">立刻登录</a>
                                        <p class="message">返回<a href="<?php echo url('index/index/index'); ?>">首页</a>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <script type="text/javascript" src="/public/js/form_ajax.js?v=<?php echo set('banben'); ?>"></script>
    <script src="/app/index/view/public/js/plugins.min.js"></script>
    <script src="/app/index/view/public/js/common.js"></script>
    <?php echo hook('userreg'); ?>
	</body>
</html>
    